<td>
  {{#unless isOwnerInActive}}
    {{user-avatar userName=owner.userName}}
  {{/unless}}

  {{owner.userName}}

  {{#if isOwnerInActive}}

    <br>
    <span class="nacho-button nacho-button--small dataset-author-record__indicator--inactive">
      Inactive
    </span>

  {{/if}}
</td>

<td>
  {{owner.name}}
</td>

<td>
  {{owner.idType}}
</td>

{{!-- hides source column for confirmed owners--}}
{{#unless isOwnerMutable}}

  <td>
    {{owner.source}}
  </td>

{{/unless}}

<td>
  {{#if owner.modifiedTime}}
    {{moment-calendar owner.modifiedTime sameElse="MMM Do YYYY, h:mm a"}}
  {{else}}

    <span
      class="nacho-button nacho-button--small dataset-author-record__indicator--disabled">
      Not Saved
    </span>

  {{/if}}
</td>


<td>
  {{ember-selector
    class=(unless isOwnerMutable "nacho-select--hidden-state")
    values=ownerTypes
    selected=owner.type
    disabled=(not isOwnerMutable)
    selectionDidChange=(action "changeOwnerType")
  }}
</td>

<td>
  {{#if isOwnerMutable}}

    <button
      class="nacho-button nacho-button--small remove-dataset-author"
      {{action "removeOwner"}}>
      <i class="fa fa-trash"
         aria-label="Remove Owner"></i>
    </button>

  {{else}}

    {{#if isConfirmedSuggestedOwner}}

      <span
        class="nacho-button nacho-button--small dataset-author-record__indicator--disabled">
        Added
      </span>

    {{else}}

      <button
        class="nacho-button nacho-button--small confirm-suggested-dataset-author"
        {{action "confirmOwner"}}>
        <i class="fa fa-plus" title="Add an Owner"></i>
      </button>

    {{/if}}

  {{/if}}
</td>

